package com.dao.impl;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import com.bean.Listtopics;
import com.dao.ListtopicsDao;
@Repository
public class ListtopicsDaoImpl extends SqlSessionDaoSupport implements ListtopicsDao{
	private String ns = "com.mapper.Listtopics.";
	
	public List<Listtopics> select() {
		
		return this.getSqlSession().selectList(ns+"selectlisttopics");
	}

	public int insert(Listtopics listtopics) {
		return this.getSqlSession().insert(ns+"inserttopics", listtopics);
	}
	
}
